public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addFirst(5);
        mySingleList.addFirst(4);
        mySingleList.addFirst(3);
        mySingleList.addFirst(2);
        mySingleList.addFirst(1);
        mySingleList.addFirst(1);
        mySingleList.display();
        mySingleList.addLast(99);
        mySingleList.display();
        mySingleList.addIndex(0,11);
        mySingleList.addIndex(6,18);
        //mySingleList.addIndex(10,18);
        mySingleList.display();
        System.out.println(mySingleList.contains(11));
        System.out.println(mySingleList.contains(22));
        mySingleList.remove(99);
        mySingleList.display();
        mySingleList.removeAllKey(1);
        mySingleList.display();

        System.out.println("================");

        mySingleList.addFirst(2);
        mySingleList.addFirst(5);
        mySingleList.addFirst(2);
        mySingleList.addFirst(2);
        mySingleList.addFirst(1);
        mySingleList.addFirst(2);
        mySingleList.addFirst(2);
        mySingleList.display();
        mySingleList.removeAllKey(2);
        mySingleList.display();
        System.out.println("===========");
        mySingleList.clear();
    }
}
